layui.use(['form'], function(){
	    form = layui.form;
		var laydate = layui.laydate;
		laydate.render({
			elem: '#startDate' //指定元素
			,max:0
		});
		form.render();
	    io.get("/engine/model-nos",function(res){
	    	var data = res.data;
	    	var m = new Map();
	    	for(var i in data){
	    		var v= data[i];
	    		m.set(String(v),String(v));
	    	}
	    	map2Select(m,"modelNo");
	        form.render();
	    });
	   
	    form.on('submit(train)', function(formData){
	    	var data = formData.field;
	    	io.put('/engine/model/hlu-train',JSON.stringify(data),function(res){
	    		layer.alert('训练完毕，共耗时'+res.data+"秒", {icon: 1});
	 	    });
	        return false;
	      });
});
